import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "./SeqIntHelper";
import { SPoint } from "./SPoint";
type int = number;
//class SMapArea
    
    export  class SMapArea
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.areaId);
            arg1.writeInt(this.mapId);
            this.point.__write(arg1);
            arg1.writeString(this.name);
            SeqIntHelper.write(arg1, this.plans);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.areaId = arg1.readInt();
            this.mapId = arg1.readInt();
            this.point = new SPoint();
            this.point.__read(arg1);
            this.name = arg1.readString();
            this.plans = SeqIntHelper.read(arg1);
            return;
        }

        public /* var */areaId: int;

        public /* var */mapId: int;

        public /* var */point: SPoint;

        public /* var */name: string;

        public /* var */plans: Array<any>;
    }
